<?php
/**
 * TOP API: taobao.ju.items.get request
 * 
 * @author auto create
 * @since 1.0, 2012-04-17 12:36:56
 */
class JuItemsGetRequest
{
    /** 
     * 代表需要返回的商品对象字段。可选值：ItemData商品结构体中所有字段均可返回；多个字段用","分隔。如果fields为空，或者不传该参数，就默认获得所有的字段
     **/
    private $fields;
    
    /** 
     * 商品ID列表。id列表超过6条也只返回前6条的商品
     **/
    private $ids;
    
    private $apiParas = array();
    
    public function setFields($fields)
    {
        $this->fields = $fields;
        $this->apiParas["fields"] = $fields;
    }

    public function getFields()
    {
        return $this->fields;
    }

    public function setIds($ids)
    {
        $this->ids = $ids;
        $this->apiParas["ids"] = $ids;
    }

    public function getIds()
    {
        return $this->ids;
    }

    public function getApiMethodName()
    {
        return "taobao.ju.items.get";
    }
    
    public function getApiParas()
    {
        return $this->apiParas;
    }
    
    public function check()
    {
        
        RequestCheckUtil::checkNotNull($this->ids,"ids");
    }
}
